//
// Created by ziya on 2021/1/14.
//

#ifndef STACK_ENGINE_JAVATHREAD_H
#define STACK_ENGINE_JAVATHREAD_H

#include "common.h"
#include "javaThreadStack.h"

class JavaThread {

private:
    jint _pc;
    JavaThreadStack* _stack;

public:
    JavaThread() {
        _pc = 0;
        _stack = new JavaThreadStack(1024);
    }

    JavaThread(jint stackSize) {
        _pc = 0;
        _stack = new JavaThreadStack(stackSize);
    }

public:
    JavaThreadStack* stack() {
        return _stack;
    }

    void run();

};


#endif //STACK_ENGINE_JAVATHREAD_H
